package Binrary_Management_System.User;

import Binrary_Management_System.ioPeration.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 何华树
 * Date: 2024-09-13
 * Time: 13:02
 */
public class AdminUser extends User{
    public AdminUser(String name) {
        super(name);
        this.iOperations = new IOperation[] {
            new ExitOperation(),
            new ShowOperation(),
            new FindOpertion(),
            new AddOperation(),
            new DelOperation()
        };
    }

    public int menu() {
        System.out.println("欢迎"+this.name+"来到图书管理系统！");
        System.out.println("********** 管理员系统  **********");
        System.out.println("********** 1.显示图书  **********");
        System.out.println("********** 2.查找图书  **********");
        System.out.println("********** 3.新增图书  **********");
        System.out.println("********** 4.删除图书  **********");
        System.out.println("********** 0.退出系统  **********");

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的选择：");
        int choice = scanner.nextInt();

        return choice;
    }
}
